import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 维护精品项目查询
export const getList = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/maintenance/queryProject`, { params });
// 装饰件主数据查询
export const partInfoMainData = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/maintenance/partInfoMainData`, { params });
// 保存精品项目信息
export const excutePartInfo = params => axios.post(`${SERVER.DMSCLOUD_PART}/partBoutique/maintenance/saveOrUpdate`, params);
// 精品项目详情
export const getProjectList = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/maintenance/getProjectList`, { params });
// 根据项目id获取备件(维护精品项目用)
export const getProjectListById = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/project/part`, { params });
